package at.ac.tuwien.infosys.aic11.dto;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "bank_transfer")
@XmlAccessorType(XmlAccessType.NONE)
public class BankTransfer extends DisbursementPreference {
	
	//disbursement service expects element name in this style
	@XmlElement(name="bankName", required=true)
	private String bankName;
	@XmlElement(name="bic", required=true)
	private String bic;
	@XmlElement(name="iban", required=true)
	private String iban;
	
	public BankTransfer(){}
	
	
	public BankTransfer(String bankName, String bic, String iban,long customerId){
		super(customerId);
		this.bankName=bankName;
		this.bic=bic;
		this.iban=iban;
	}
	
	public BankTransfer(String bankName, String bic, String iban,InternalCustomer c){
		super(c.getCustomerId());
		this.bankName=bankName;
		this.bic=bic;
		this.iban=iban;
	}
	
	public BankTransfer(String bankName, String bic, String iban){
		this.bankName=bankName;
		this.bic=bic;
		this.iban=iban;
	}
	
	public String getBankName() {
		return bankName;
	}
	public void setBankName(String bankName) {
		this.bankName = bankName;
	}
	public String getBic() {
		return bic;
	}
	public void setBic(String bic) {
		this.bic = bic;
	}
	public String getIban() {
		return iban;
	}
	public void setIban(String iban) {
		this.iban = iban;
	}
	
	public String toString(){
		return super.toString()+" bankName: "+bankName+" bic: "+bic+" iban: "+iban;
	}
}
